package com.example.jpetstoreback.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;

@Data
@TableName("cartitem")
public class CartItem {
    @TableId(value = "userid", type = IdType.INPUT)
    private String username;
    @TableField(value = "itemid")
    private String ItemId;
    private int quantity;
    @TableField(value = "instock")
    private boolean isInStock;
    @TableField(value = "total")
    private BigDecimal total;
}